﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Business_Objects
{
   public class User
   {
       private int _id;
     
       private int _schoolID ;
       private string _userName = String.Empty;
       private string _password = String.Empty;
       private string _email = String.Empty;
       private DateTime _lasActivityDate ;
       private bool _isAdmin;
       private bool _isSystem;
       private bool _isActive;
      public User()
        {
        }

      public User(int _id,
         string _userName,
         string _password,
         string _email,
         int _schoolID,
         bool _isAdmin, bool _isSystem, bool _isActive, DateTime _lasActivityDate)
        {
            Id = _id;
            UserName = _userName;
            Password = _password;
            Email = _email;
            SchoolId = _schoolID;
          
            IsAdmin = _isAdmin;
            IsSystem = _isSystem;
            IsActive = _isActive;
          LasActivityDate = _lasActivityDate;
        }

      public int Id
       {
           get { return _id; }
           set { _id = value; }
       }

   

      public int SchoolId
       {
           get { return _schoolID; }
           set { _schoolID = value; }
       }

       public string UserName
       {
           get { return _userName; }
           set { _userName = value; }
       }

       public string Password
       {
           get { return _password; }
           set { _password = value; }
       }

       public string Email
       {
           get { return _email; }
           set { _email = value; }
       }

       public DateTime LasActivityDate
       {
           get { return _lasActivityDate; }
           set { _lasActivityDate = value; }
       }

       public bool IsAdmin
       {
           get { return _isAdmin; }
           set { _isAdmin = value; }
       }

       public bool IsSystem
       {
           get { return _isSystem; }
           set { _isSystem = value; }
       }

       public bool IsActive
       {
           get { return _isActive; }
           set { _isActive = value; }
       }
   }
}
